﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AAA.Chart.Data;
using System.Drawing;
using AAA.Meta.Chart;

namespace AAA.Chart.Indicator
{
    public class Line : DefaultIndicator
    {
        private DataTypeEnum _eDataField;
        private string _strName;

        public Line(DataTypeEnum eDataField, string strName)
        {
            //_eDataField = eDataField;
            //_strName = strName;
            Name = strName;
            DataField = eDataField;
            ChartStyle = ChartStyleEnum.Line;
        }

        public override void Calculate()
        {
            Plot(DataSource.GetData(BaseStudy).GetData(DataField), 
                 Name, Color.Yellow, Color.Yellow, 1);
        }
    }
}
